import { request } from "@/utils/service"

// API配置--------------------------------------------------

/** 配置列表 */
export function configUserListApi(data: any) {
  return request({
    url:"/d/config/user/list",
    method: "POST",
    data
  })
}

/** 获取分组类型 */
export function configUserGroupApi() {
  return request({
    url:"/d/config/user/group",
    method: "POST",
  })
}
/** 获取配置类型 */
export function configUserTypeApi() {
  return request({
    url:"/d/config/user/type",
    method: "POST",
  })
}



/** 删除 */
export function delConfigUserApi(data:any) {
  return request({
    url:"/d/config/user/v2/delete",
    method: "POST",
    data
  })
}

/** 修改状态 */
export function editConfigUserStatusApi(data:any) {
  return request({
    url:"/d/config/user/update/status",
    method: "POST",
    data,
  })
}

/** 修改 */
export function editConfigUserApi(data: any) {
  return request({
    url:"/d/config/user/update",
    method: "POST",
    data,
  })
}

/** 获取配置类型选项 */
export function getConfigUserConfigitemApi(data: any) {
  return request({
    url:"/d/config/user/v2/type/configitem",
    method: "POST",
    data,
  })
}

/** 获取配置单个 */
export function getConfigUserApi(data: any) {
  return request({
    url:"/d/config/user/v2/get",
    method: "POST",
    data,
  })
}

/** 获取配置(详情包含不可编辑部分以及完整部分) */
export function detailsConfigUserApi(data: any) {
  return request({
    url:"/d/config/user/v2/get/details",
    method: "POST",
    data,
  })
}
